﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MTO.Library.Domain
{
    public class Money
    {
        protected Money() { }

        public Money(decimal amount)
        {
            Amount = amount;
        }

        [Column("Amount")]
        public decimal Amount { get; set; }

        public override string ToString()
        {
            return String.Format("{0:c}", Amount);
        }
    }
}
